home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / IDLIncludes / CardServices.idl < prev    next >
Text File  |  1996-05-01  |  7KB  |  200 lines

  1. /*
  2.      File:        CardServices.idl
  3.  
  4.      Contains:    The client interface to Card and Socket Services.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. */
  18. #ifndef __CARDSERVICES_IDL__
  19. #define __CARDSERVICES_IDL__
  20.  
  21. #include <somobj.idl>
  22. #include <somcls.idl>
  23.  
  24. #ifndef __TYPES_IDL__
  25. #include <Types.idl>
  26. #endif
  27. #ifndef __PCCARDTUPLES_IDL__
  28. #include <PCCardTuples.idl>
  29. #endif
  30. #ifndef __MIXEDMODE_IDL__
  31. #include <MixedMode.idl>
  32. #endif
  33.  
  34. #ifdef __SOMIDL__
  35.  
  36. /*    miscellaneous*/
  37. /* Will move to <Gestalt.h>*/
  38. /* Will move to <Traps.h>*/
  39. /*
  40.  Will move to <Errors.h>
  41.     result codes
  42. */
  43. /*    messages sent to client's event handler*/
  44. /*
  45.     The following is a mapping of the PCMCIA name space to the Macintosh name space.
  46.     These two enum lists will be removed and given to developers as a separate file.
  47. */
  48. /*    messages sent to client's event handler*/
  49. /*----------------        CSAccessConfigurationRegister    ----------------*/
  50. typedef SOMLargeStruct            AccessConfigurationRegisterPB; /* Derived from a struct of 6 bytes in size */
  51.  
  52. /*    `action' field values*/
  53. /*----------------        CSGetCardServicesInfo            ----------------*/
  54. typedef SOMLargeStruct            GetCardServicesInfoPB;        /* Derived from a struct of 16 bytes in size */
  55.  
  56. /*
  57. ----------------        CSGetClientInfo                    ----------------
  58.  upper byte of attributes is kCSClientInfoSubfunction
  59. */
  60. typedef SOMLargeStruct            ClientInfoParam;            /* Derived from a struct of 24 bytes in size */
  61.  
  62. /*
  63.  upper byte of attributes is kCSCardNameSubfunction,
  64.                                kCSCardTypeSubfunction,
  65.                                kCSHelpStringSubfunction
  66. */
  67. typedef SOMLargeStruct            AlternateTextStringParam;    /* Derived from a struct of 16 bytes in size */
  68.  
  69. /* upper byte of attributes is kCSCardIconSubfunction*/
  70. typedef SOMLargeStruct            AlternateCardIconParam;        /* Derived from a struct of 12 bytes in size */
  71.  
  72. /* upper byte of attributes is kCSActionProcSubfunction*/
  73. typedef SOMLargeStruct            CustomActionProcParam;        /* Derived from a struct of 8 bytes in size */
  74.  
  75. typedef SOMLargeStruct            GetClientInfoPB;            /* Derived from a struct of 60 bytes in size */
  76.  
  77. /*    `attributes' field values*/
  78. /*
  79. ----------------        CSGetConfigurationInfo            ----------------
  80. ----------------        CSModifyConfiguration            ----------------
  81. ----------------        CSRequestConfiguration            ----------------
  82. */
  83. typedef SOMLargeStruct            GetModRequestConfigInfoPB;    /* Derived from a struct of 30 bytes in size */
  84.  
  85. /*    `attributes' field values*/
  86. /*    `intType' field values*/
  87. /*    `present' field values*/
  88. /*    `cardValues' field values*/
  89. /*
  90. ----------------        CSGetClientEventMask            ----------------
  91. ----------------        CSSetClientEventMask            ----------------
  92. */
  93. typedef SOMLargeStruct            GetSetClientEventMaskPB;    /* Derived from a struct of 10 bytes in size */
  94.  
  95. /*    `attributes' field values*/
  96. /*    `eventMask' field values*/
  97. /*
  98. ----------------        CSGetFirstClient                ----------------
  99. ----------------        CSGetNextClient                    ----------------
  100. */
  101. typedef SOMLargeStruct            GetClientPB;                /* Derived from a struct of 8 bytes in size */
  102.  
  103. /*    `attributes' field values*/
  104. /*
  105. ----------------        CSGetFirstTuple                    ----------------
  106. ----------------        CSGetNextTuple                    ----------------
  107. ----------------        CSGetTupleData                    ----------------
  108. */
  109. typedef SOMLargeStruct            GetTuplePB;                    /* Derived from a struct of 276 bytes in size */
  110.  
  111. /*    `attributes' field values*/
  112. /*
  113. ----------------        CSRequestSocketMask                ----------------
  114. ----------------        CSReleaseSocketMask                ----------------
  115. */
  116. typedef SOMLargeStruct            ReqRelSocketMaskPB;            /* Derived from a struct of 8 bytes in size */
  117.  
  118. /*
  119.     `eventMask' field values (see above for Get/SetClientEventMask
  120. ----------------        CSGetStatus                        ----------------
  121. */
  122. typedef SOMLargeStruct            GetStatusPB;                /* Derived from a struct of 6 bytes in size */
  123.  
  124. /*    `cardState' field values*/
  125. /*    `socketState' field values*/
  126. /*
  127. ----------------        CSModifyWindow                    ----------------
  128. ----------------        CSReleaseWindow                    ----------------
  129. ----------------        CSRequestWindow                    ----------------
  130. */
  131. typedef SOMLargeStruct            ReqModRelWindowPB;            /* Derived from a struct of 22 bytes in size */
  132.  
  133. /*    `attributes' field values*/
  134. /*    `accessSpeed' field values*/
  135. /*
  136. ----------------        CSRegisterClient                ----------------
  137. ----------------        CSDeregisterClient                ----------------
  138. */
  139. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  140. typedef SOMLargeStruct            ClientCallbackPB;            /* Derived from a struct of 20 bytes in size */
  141.  
  142. typedef OpaquePtr                ClientCallbackPBPtr;        /* Substituted OpaquePtr for ``ClientCallbackPB*'' */
  143.  
  144. typedef OpaquePtr PCCardCSClientProcPtr;
  145. typedef OpaquePtr PCCardCSClientUPP;
  146. typedef SOMLargeStruct            RegisterClientPB;            /* Derived from a struct of 18 bytes in size */
  147.  
  148. /*
  149.     `attributes' field values (see GetClientInfo)
  150.     kCSMemoryClient                    = 0x0001,
  151.     kCSIOClient                        = 0x0004,
  152.     kCSShareableCardInsertEvents    = 0x0008,
  153.     kCSExclusiveCardInsertEvents    = 0x0010
  154. */
  155. #endif
  156. /*----------------        CSReleaseConfiguration            ----------------*/
  157. typedef SOMLargeStruct            ReleaseConfigurationPB;        /* Derived from a struct of 6 bytes in size */
  158.  
  159. /*----------------        CSResetCard                        ----------------*/
  160. typedef SOMLargeStruct            ResetCardPB;                /* Derived from a struct of 8 bytes in size */
  161.  
  162. /*----------------        CSValidateCIS                    ----------------*/
  163. typedef SOMFourByteStruct        ValidateCISPB;                /* Derived from a struct of 4 bytes in size */
  164.  
  165. /*
  166. ----------------        CSRequestIO                        ----------------
  167. ----------------        CSReleaseIO                        ----------------
  168. */
  169. typedef SOMLargeStruct            ReqRelIOPB;                    /* Derived from a struct of 18 bytes in size */
  170.  
  171. /*----------------        CSVendorSpecific                ----------------*/
  172. typedef SOMLargeStruct            VendorSpecificPB;            /* Derived from a struct of 16 bytes in size */
  173.  
  174. /*    `vsCode' field values*/
  175. /*
  176. ///////////////////////////////////////////////////////////////////////////////////////
  177.     GetAdapterInfo parameter block (vendor-specific call #6)
  178. */
  179. typedef SOMLargeStruct            GetAdapterInfoPB;            /* Derived from a struct of 14 bytes in size */
  180.  
  181. /*    `attributes' field values*/
  182. /*
  183. ///////////////////////////////////////////////////////////////////////////////////////
  184.     GetCardInfo parameter block (vendor-specific call #2)
  185. */
  186. typedef SOMLargeStruct            GetCardInfoPB;                /* Derived from a struct of 16 bytes in size */
  187.  
  188. /*    GetCardInfo card types*/
  189. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  190. #endif
  191. /*
  192.     Additional calls which are required for all I/O clients when running on
  193.     systems which do not reserve dedicated I/O-spaces for each PC Card.
  194. */
  195.  
  196. #endif /* __SOMIDL__ */
  197.  
  198. #endif /* __CARDSERVICES_IDL__ */
  199.  
  200.